<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>CRM</title>
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="/static/plugin/jquery-easyui-1.5.2/demo/demo.css">
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/plugin/jquery-easyui-1.5.2/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/js/potentialProject.js"></script>
</head>
<body>
<table id="project_datagrid"></table>

<div id="project_toolbar">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-add'" data-cmd="add">添加计划</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-edit'" data-cmd="edit">编辑计划</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cut'" data-cmd="delete">删除计划</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-failure'" data-cmd="report">标记结果</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="showQuery">高级查询</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search'" data-cmd="clearQuery">查询全部</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-reload'" data-cmd="reload">刷新</a>
    <div id="queryObject" data-num="1">
        <span>创建时间:</span><input class="easyui-datebox" id="beginDate" data-options="height:30,width:150">
        <span>～</span>
        <input class="easyui-datebox" id="endDate" data-options="height:30,width:150">&nbsp;
        <span>精确搜索:</span>
        <input class="easyui-textbox" id="qoClient" prompt="客户" data-options="height:30,width:150">&nbsp;
        <input class="easyui-textbox" id="qoInput" prompt="创建人" data-options="height:30,width:150">&nbsp;
        <span>模糊查询:</span>
        <input class="easyui-textbox" id="qoTheme" prompt="主题" data-options="height:30,width:150">&nbsp;
        <input class="easyui-combobox" id="methodId" prompt="跟进方式"
               data-options="height:30,width:150,
               editable:false,limitToList:true,panelHeight:'auto',valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=source'"
        >&nbsp;
        <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-search',height:30" data-cmd="query"></a>
    </div>
</div>
<div id="project_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="save">确定</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>
<%--执行结果界面按钮--%>
<div id="project_report_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="reportIn">确定</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="cancel">取消</a>
</div>
<%--客户选择界面按钮--%>
<div id="project_client_buttons">
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-save'" data-cmd="input">选中</a>
    <a class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-cancel'" data-cmd="inputCancel">取消</a>
</div>
<div id="project_report_dialog" align="center">
    <form method="post" id="project_report_form">
        <input type="hidden" name="id">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    执行主题：
                </td>
                <td></td>
                <td>
                    <input class="easyui-textbox" name="theme" data-options="height:30,width:150,disabled:true">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    负责人：
                </td>
                <td></td>
                <td>
                    <input class="easyui-textbox" id="inputName"  data-options="height:30,width:150,disabled:true">
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    执行结果：
                </td>
                <td></td>
                <td>
                    <input class="easyui-combobox"  name="report.id" prompt="执行结果评价"
                           data-options="height:30,width:150,editable:false,limitToList:true,panelHeight:'auto',valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=goals'">
                </td>
            </tr>
        </table>
    </form>
</div>

<div id="project_dialog" align="center">
    <form method="post" id="project_form">
        <input type="hidden" name="id">
        <input type="hidden" name="client.id" id="clientId">
        <table style="margin-top: 20px" align="center">
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    姓名：
                </td>
                <td>
                    <input class="easyui-textbox" id="clientName" data-options="height:30,width:150,disabled:true">
                </td>
                <td></td><td></td>
                <td colspan="2">
                    <a class="easyui-linkbutton"data-options="plain:true,iconCls:'icon-search',height:30,width:80" id="clientList" >查询客户</a>
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    计划时间：
                </td>
                <td>
                    <input class="easyui-datebox" name="projectDate" data-options="height:30,width:150" >
                </td>
                <td></td>
                <td>
                    计划主题：
                </td>
                <td>
                    <input class="easyui-textbox" name="theme" data-options="height:30,width:150" >
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td>
                    实施方式：
                </td>
                <td>
                    <input class="easyui-combobox" name="method.id" prompt="跟进方式"
                           data-options="height:30,width:150,editable:false,limitToList:true,panelHeight:'auto',valueField:'id',textField:'name',url:'/dic/selectItemBySn.do?sn=source'"
                    >&nbsp;
                </td>
                <td></td>
                <td>
                    备注：
                </td>
                <td>
                    <input class="easyui-textbox" name="remark" data-options="height:30,width:150" >
                </td>
            </tr>
            <tr style="height:40px" style="width: 500px" align="center">
                <td colspan="5">
                    <div style="height: 30px;">详情</div>
                    <textarea name="particular"cols="33" rows="5" style="width: 300px;"></textarea>
                </td>
            </tr>
        </table>
    </form>
    <%--客户选择窗口--%>
</div>
<div id="client_dialog">
<div id="project_client_datagrid" ></div>
</div>
</body>
</html>